package com.example.clublesson01.adapter

import com.bumptech.glide.Glide
import com.bw.kf.lib_base.entity.LookCarEntity
import com.bw.kf.lib_base.entity.MallGoodsInfoPageResponse
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.clublesson01.R


class LookCarAdapter:BaseQuickAdapter<MallGoodsInfoPageResponse, BaseViewHolder>(R.layout.item_look_car) {
    override fun convert(helper: BaseViewHolder, item: MallGoodsInfoPageResponse) {
        helper.setText(R.id.tv_name, item.title)
        helper.setText(R.id.tv_price,"￥"+item.marketPriceFee)
        Glide.with(context).load(item.mainImgUrl).into(helper.getView(R.id.iv_motorcycle))

    }
}
class LookCarAdapter2:BaseQuickAdapter<MallGoodsInfoPageResponse, BaseViewHolder>(R.layout.item_look_car) {
    override fun convert(helper: BaseViewHolder, item: MallGoodsInfoPageResponse) {
        helper.setText(R.id.tv_name, item.title)
        helper.setText(R.id.tv_price,"￥"+item.marketPriceFee)
        Glide.with(context).load(item.mainImgUrl).into(helper.getView(R.id.iv_motorcycle))

    }
}
class LookCarAdapter3:BaseQuickAdapter<MallGoodsInfoPageResponse, BaseViewHolder>(R.layout.item_look_car) {
    override fun convert(helper: BaseViewHolder, item: MallGoodsInfoPageResponse) {
        helper.setText(R.id.tv_name, item.title)
        helper.setText(R.id.tv_price,"￥"+item.marketPriceFee)
        Glide.with(context).load(item.mainImgUrl).into(helper.getView(R.id.iv_motorcycle))

    }
}